package com.link.order.service.respository.impl;

import com.link.order.converter.OrderConvert;
import com.link.order.infrastructure.mapper.OrderMapper;
import com.link.order.model.OrderDTO;
import com.link.order.service.respository.OrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author tutao
 * @date 2025/10/6 5:39 PM
 * @description
 */
@Repository
public class OrderRepositoryImpl implements OrderRepository {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void creat(OrderDTO orderDTO) {
        orderMapper.insert(OrderConvert.convert(orderDTO));
    }
}
